package com.zygh.lz.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
@ApiModel(value = "PostDeployVO", description = "")
public class PostDeployVO implements Serializable {

    @ApiModelProperty(value = "岗位信息")
    private List<ValueInfo<XareaVO>> post;

    @ApiModelProperty(value = "警员信息")
    private List<ValueInfo<StaffVO>> police;

    @ApiModelProperty(value = "装备信息")
    private List<ValueInfo<EquipageVO>> equipage;


    public PostDeployVO() {
        post = new ArrayList<ValueInfo<XareaVO>>();
        police = new ArrayList<ValueInfo<StaffVO>>();
        equipage = new ArrayList<ValueInfo<EquipageVO>>();
    }

    @Data
    public static class ValueInfo<T> {
        @ApiModelProperty(value = "名称")
        private String name;
        private String id;
        @ApiModelProperty(value = "数据")
        private List<T> value;
    }

    private static final long serialVersionUID = 1L;
}
